package com.my.biz.service;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.google.common.collect.Maps;
import com.my.api.response.Msg;

@Service
public class GroupService {

	
	public Map<String,String> qq_group_map = Maps.newConcurrentMap();
	
	
	public Msg add_group(String uid,String qq_group){
		if(!qq_group_map.containsKey(qq_group)){
			qq_group_map.put(qq_group, uid);
		}
		return new Msg(Boolean.TRUE, 200, "添加成功");
	}
	
	public Boolean is_add_group(String group){
		return qq_group_map.containsKey(group);
	}
}
